﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Geoconcepts.SemanticServices.WebTest._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>Semantic Web Services Test</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:Label ID="lblURI" runat="server" Text="URI:"></asp:Label><br />
        <asp:TextBox ID="txtURI" runat="server" Width="699px">http://www.geospatialmeaning.eu/geo-ontologies-survey/GeoConcepts/Geoconcepts_Test_Sample_20080627.owl</asp:TextBox><br />
        <asp:RadioButtonList ID="rblWebOrFile" runat="server">
            <asp:ListItem Selected="True">web</asp:ListItem>
            <asp:ListItem>file</asp:ListItem>
        </asp:RadioButtonList><asp:Label ID="lblSparql" runat="server" Text="SPARQL:"></asp:Label><br />
        <asp:TextBox ID="txtSparql" runat="server" Height="259px" TextMode="MultiLine" Width="700px">PREFIX gc:&lt;http://www.geospatialmeaning.eu/geo-ontologies-survey/GeoConcepts/GeoConcepts_v1.1_20080301Lite.owl#&gt; 
CONSTRUCT {?s ?p ?o .} 
WHERE {?s ?p ?o . 
FILTER((?p = gc:isSpatialPartOf_High || ?p = gc:isSpatialPartOf_Medium || ?p = gc:isSpatialPartOf_Low || ?p = gc:isSpatiallyEqual || ?p = gc:isSpatialNeighbour_Low || ?p = gc:isSpatialNeighbour_Medium || ?p = gc:isSpatialNeighbour_High || ?p = gc:hasSpatialPart_Low || ?p = gc:hasSpatialPart_Medium || ?p = gc:hasSpatialPart_High || ?p = gc:hasNiceViewsOf_High || ?p = gc:hasNiceViewsOf_Medium || ?p = gc:hasNiceViewsOf_Low) &amp;&amp; ((?s = gc:ayuntamiento || ?s = gc:hnv_ayuntamiento || ?s = gc:laconcha || ?s = gc:playalaconcha) || (?o = gc:ayuntamiento || ?o = gc:hnv_ayuntamiento || ?o = gc:laconcha || ?o = gc:playalaconcha)))}

</asp:TextBox>
        <br />
        <br />
        <asp:Button ID="btnExecuteSparql" runat="server" OnClick="btnExecuteSparql_Click"
            Text="Execute" Width="125px" /><br />
        <br />
        &nbsp;<asp:TextBox ID="txtXmlResult" runat="server" EnableTheming="True" Height="439px"
            ReadOnly="True" TextMode="MultiLine" Width="698px"></asp:TextBox><br />
        <br />
        <asp:Label ID="lblIndividualURI" runat="server" Text="IndividualURI"></asp:Label><br />
        <asp:TextBox ID="txtIndividualURI" runat="server" Width="700px">http://www.geospatialmeaning.eu/geo-ontologies-survey/GeoConcepts/GeoConcepts_v1.1_20080301Lite.owl#puertopesquero</asp:TextBox><br />
        <br />
        <asp:Button ID="btnGetIndividual" runat="server" OnClick="btnGetIndividual_Click"
            Text="Get Individual" Width="110px" /><br />
        <asp:TextBox ID="txtIndividualResult" runat="server" Width="695px"></asp:TextBox><br />
        <br />
        <asp:Label ID="Label1" runat="server" Text="Server"></asp:Label>
        <asp:TextBox ID="txtServer" runat="server"></asp:TextBox>
        <asp:Label ID="Label2" runat="server" Text="Usuario"></asp:Label>
        <asp:TextBox ID="txtUsuario" runat="server"></asp:TextBox>
        <asp:Label ID="Label3" runat="server" Text="Password"></asp:Label>
        <asp:TextBox ID="txtPassword" runat="server"></asp:TextBox>
        <asp:Button ID="btnTestConnection" runat="server" OnClick="btnTestConnection_Click"
            Text="Test" /><br />
        <asp:Label ID="lblResultadoTest" runat="server"></asp:Label></div>
    </form>
</body>
</html>
